import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

// 部门列表
export function groupGetDepartmentList(data) {
  return request({
    url: '/group/getDepartmentList' + transFormValue(data),
    method: 'post'
  })
}

// 创建部门
export function groupCreateDepartment(data) {
    return request({
      url: '/group/createDepartment' + transFormValue(data),
      method: 'post'
    })
}

// 更新部门
export function groupUpdateDepartment(data) {
    return request({
      url: '/group/updateDepartment' + transFormValue(data),
      method: 'post'
    })
}

// 删除部门
export function groupDeleteDepartment(data) {
    return request({
      url: '/group/deleteDepartment' + transFormValue(data),
      method: 'post'
    })
}